package com.landinfo.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * Created by ziqilv on 2017/7/5.
 * 动态模板（动态表单）
 */
public class DynamicTemplate {
    private String name;
    private List<FieldColumn> fieldColumns;
    //    private List<FieldColumnDomain> fieldColumnsDomain;
    private HashMap<String, Object> fieldColumnsDomain;
    private List<DynamicTemplate> childrenTable;
    private String id = "";
    private String description = "";
    private String icon = "";
    private String type;
    private String geometryType;
    private String taskContent;
    private Date createDate;
    private Boolean enable = true;
    private Integer sorting;
    private String landType;
    private Object rows = null;
    /**
     * 新增或者删除了数据
     */
    private String addOrDel;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<FieldColumn> getFieldColumns() {
        return fieldColumns;
    }

    public void setFieldColumns(List<FieldColumn> fieldColumns) {
        this.fieldColumns = fieldColumns;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public List<DynamicTemplate> getChildrenTable() {
        return childrenTable;
    }

    public void setChildrenTable(List<DynamicTemplate> childrenTable) {
        this.childrenTable = childrenTable;
    }

    public Object getRows() {
        return rows;
    }

    public void setRows(Object rows) {
        this.rows = rows;
    }

    public HashMap<String, Object> getFieldColumnsDomain() {
        return fieldColumnsDomain;
    }

    public void setFieldColumnsDomain(HashMap<String, Object> fieldColumnsDomain) {
        this.fieldColumnsDomain = fieldColumnsDomain;
    }

    /**
     * 新增或者删除了数据
     *
     * @return
     */
    public String getAddOrDel() {
        return addOrDel;
    }

    /**
     * 新增或者删除了数据
     *
     * @param addOrDel
     */
    public void setAddOrDel(String addOrDel) {
        this.addOrDel = addOrDel;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public String getLandType() {
        return landType;
    }

    public void setLandType(String landType) {
        this.landType = landType;
    }

    public String getGeometryType() {
        return geometryType;
    }

    public void setGeometryType(String geometryType) {
        this.geometryType = geometryType;
    }


//    public List<FieldColumnDomain> getFieldColumnsDomain() {
//        return fieldColumnsDomain;
//    }
//
//    public void setFieldColumnsDomain(List<FieldColumnDomain> fieldColumnsDomain) {
//        this.fieldColumnsDomain = fieldColumnsDomain;
//    }
}
